package com.bskj.common.enums;

public enum ShopCouponStatusEnum {
	enable(1, "启用"), disable(2, "停用");
	private int key;
	private String value;
	private ShopCouponStatusEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}
	public int getKey() {
		return key;
	}
	public void setKey(int key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public static ShopCouponStatusEnum get(int key) {
		for(ShopCouponStatusEnum shopCouponStatusEnum : ShopCouponStatusEnum.values()) {
			if(shopCouponStatusEnum.getKey() == key) {
				return shopCouponStatusEnum;
			}
		}
		return null;
	}
}
